<body class="gray-bg">
<div class="ibox-title">基本信息</div>
<div class="ibox-content">
    <div class="row">
        <div class="ibox-content">
            {$info.business_info.summary_html}
        </div>
    </div>
</div>

<!--审批处理-->
<div class="ibox-title">审批流程</div>
<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('WorkflowBusinessHistory/approval')}">
        <input type="hidden" name="wbhid" value="{$info.id|default='0'}">
        <div class="form-group">
            <div class="col-sm-12">
                <p class="form-control-static">{$info.workflow_list}</p>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
    </form>
</div>

<div class="ibox-title">审批记录</div>
<div class="ibox-content">
    <table class="table table-hover sorttable ajax-list-table" width="100%">
        <thead>
        <tr>
            <th width="120">创建时间</th>
            <th width="120">审批节点</th>
            <th width="100">审批人</th>
            <th width="120">审核结果</th>
            <th width="120">审批时间</th>
            <th width="200">备注说明</th>
        </tr>
        </thead>
        <tbody>
<!--        审批历史记录-->
        {notempty name='info.workflow_business_history'}
        {volist name='info.workflow_business_history' id='vo'}
        <tr>
            <td width="120">{$vo.create_time}</td>
            <td width="120">{$vo.curr_node_name}{$vo.sign_type_name}</td>
            <td width="100">{$vo.deal_user_name}</td>
            <td width="120">{$vo.deal_status_name}</td>
            <td width="120">{$vo.deal_time}</td>
            <td width="200">{$vo.suggestion_feedback}</td>
        </tr>
        {/volist}
        {/notempty}
        </tbody>
    </table>
</div>
<script>
    approval_type();
    $('.approval_deal_status input[name="deal_status"]').on('click', function (e, params) {
        approval_type();
    });
    function  approval_type() {
        var val=$('.approval_deal_status input[name="deal_status"]:checked').val();
        $('.reject_box').css('display','none');
        $('.forward_box').css('display','none');
        if(val==2){
            $('.reject_box').css('display','block');
        }else if(val==3){
            $('.forward_box').css('display','block');
        }
    }

</script>